package Lesson16Homework;

public class Demo {

	public static void main(String[] args) 
	{
		Employee ivan = new Employee("Ivan");
		Task task = new Task();
		
	//set task statements
		task.getTaskInfo();
		task.setTaskHours(40);
		task.setTaskName("Some work");
		task.getTaskInfo();
	
	//set person statements
		ivan.showReport();
		ivan.setEmployeeHours(4);
		ivan.setEmployeeTask(task);
		ivan.showReport();
		
	//check work
		ivan.work();
		ivan.showReport();
		ivan.setEmployeeHours(20);
		ivan.work();
		ivan.showReport();
		ivan.setEmployeeHours(20);
		ivan.work();
		ivan.showReport();
		
	//check setEmployeeHours
		ivan.setEmployeeHours(-1); 
		ivan.showReport();
		ivan.setEmployeeHours(8);
		ivan.showReport();
		
		Task task1 = new Task();
		task1.getTaskInfo();
		task1.setTaskName("TASK");
		task1.setTaskHours(8);
		task1.getTaskInfo();
		
		ivan.setEmployeeTask(task1);
		ivan.showReport();
		ivan.work();
		ivan.showReport();
		
	}

}
